{$header}<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">新增库存 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" name="form1" action="__URL__/insert/">
    <p>注意：按条码或拼音选择产品，仅可添加一个产品，不可添加两个产品</p>
<table cellpadding=3 cellspacing=3 >
<tr>
    <td class="tRight" >选择已有产品：</td>
    <td class="tLeft" >
        <input type="hidden" name="jumpUrl" value="__URL__">
            <div class="input-append">
                <input id="q" name="q" class="input-xlarge search-query" placeholder="搜索"><input id="hz" name="product_id" type="hidden"> <button class="btn" type="button" onclick="filter()"><i class="icon-search"></i>搜索</button>
            </div>
        </td>
</tr>
<tr>
    <td class="tRight" >规格：</td>
    <td class="tLeft" >{$order_detail.specification|modList='Specification',###,'span3','specification'}
        </td>
</tr>
<tr>
	<td class="tRight" >数量：</td>
	<td class="tLeft" >
            <input type="text" name="number" value="" class="small">KG
        </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<a class="btn btn-primary offset1" href="__URL__"><i class="icon-arrow-left icon-white"></i>返回</a>
	</td>
</tr>
</table>
</form>
</div>
</div>
<include file="Public:footer"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/easyui/themes/default/easyui.css">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/filter-product.js"></script>
<script type="text/javascript">
    function showdetail(input_type,trans_type){
        var product_id = $('input[name="'+input_type+'_id"]').attr('value');
        if(product_id > 0){
        jQuery.post(
        URL+'/getProductDetail',
        {   product_id:product_id,
            trans_type:trans_type
        },
        function(data){
            data = data.data;
            if(data.customer_id){
                $('select[name="customer_id"]').empty();
                $('select[name="customer_id"]').append(data.customer);
            }

            $('#chosed_product').append(data.product_detail);
        },
        'json'
        );
        }
};
</script>
